<style>
.selectpicker+button{border: 1px solid #ced4da;}
</style>
<select name="location" class="selectpicker form-control" role='select-value' data-live-search="true"  required>
    {% for location in locations%}
    <option value="{{location.pk}}" {% if location == address.location %}selected{% endif %}>{{location.name}}</option>
    {% endfor %}
</select>
